package com.aiti.lulian.mapper.promotion;

import com.aiti.base.core.base.mapper.SuperMapper;
import com.aiti.lulian.dto.CardPromotionDto;
import com.aiti.lulian.entity.crad.promotion.CardPromotion;
import com.aiti.lulian.vo.CardPromotionVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CardPromotionMapper extends SuperMapper<CardPromotion> {

    List<CardPromotionVo> promotionList(Page page, @Param("dto") CardPromotionDto dto);

    List<String> selectPromoterByEnterpriseId(@Param("enterpriseId") String enterpriseId);

    CardPromotionVo selectCardPromotionByBaseId(@Param("baseId") String baseId);

    List<String> selectPromoterByEnterpriseIdExcludeSelection(@Param("enterpriseId") String enterpriseId, @Param("userId") String userId, @Param("promoterType") String promoterType);
}